package com.sunwayworld.basemodule.common.eptstorage.file.excelread.bean;

import com.sunwayworld.framework.data.annotation.Id;
import com.sunwayworld.framework.data.annotation.NotNull;
import com.sunwayworld.framework.data.annotation.Table;
import com.sunwayworld.framework.data.annotation.Transient;
import com.sunwayworld.framework.support.domain.Persistable;
import com.sunwayworld.framework.support.domain.AbstractPersistable;

/**
 * Sheet读取配置
 * 
 * @author zhangs@sunwayworld.com
 * @date 2022-01-17
 */
@Table("T_LIMS_SHEET_READCONFIG")
public class LimsSheetReadconfigBean extends AbstractPersistable<Long> implements Persistable<Long> {

    @Transient
    private static final long serialVersionUID = -82566196618711043L;

    @Id
    private Long id;// 主键
    private Long excelId;// excel的ID
    private String sheetName;// sheet名称
    private Integer sheetNo;// sheet序号
    @NotNull(defaultValue = "1")
    private String ifRead;// 是否读取
    @NotNull(defaultValue = "1")
    private Integer headRowNumber;// 标题行
    private String remark; //备注
    @NotNull(defaultValue = "1")
    private String findSheetByName; //默认按sheet名称寻找sheet
    private String mongoDocument; //mongo文档
    @NotNull(defaultValue = "0")
    private String regexMatchName; //正则匹配sheet名称

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getExcelId() {
        return excelId;
    }

    public void setExcelId(Long excelId) {
        this.excelId = excelId;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public Integer getSheetNo() {
        return sheetNo;
    }

    public void setSheetNo(Integer sheetNo) {
        this.sheetNo = sheetNo;
    }

    public String getIfRead() {
        return ifRead;
    }

    public void setIfRead(String ifRead) {
        this.ifRead = ifRead;
    }

    public Integer getHeadRowNumber() {
        return headRowNumber;
    }

    public void setHeadRowNumber(Integer headRowNumber) {
        this.headRowNumber = headRowNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getFindSheetByName() {
        return findSheetByName;
    }

    public void setFindSheetByName(String findSheetByName) {
        this.findSheetByName = findSheetByName;
    }

    public String getMongoDocument() {
        return mongoDocument;
    }

    public void setMongoDocument(String mongoDocument) {
        this.mongoDocument = mongoDocument;
    }

    public String getRegexMatchName() {
        return regexMatchName;
    }

    public void setRegexMatchName(String regexMatchName) {
        this.regexMatchName = regexMatchName;
    }
}
